package com.wx.plugin.mp.core;

import io.github.elkan1788.mpsdk4j.vo.event.BasicEvent;

import java.util.Map;

/**
 * Created by zhou on 2016/11/28.
 */
public class PayEvent extends BasicEvent {

    private String orderId;

    private String orderStatus;

    private String productId;

    public PayEvent(Map<String, String> values) {
        super(values);
        this.event = "merchant_order";
        this.orderId = values.get("orderId");
        this.orderStatus = values.get("orderStatus");
        this.productId = values.get("productId");
    }

    @Override
    public String toString() {
        return "PayEvent{" +
                "orderId='" + orderId + '\'' +
                ", orderStatus='" + orderStatus + '\'' +
                ", productId='" + productId + '\'' +
                '}';
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }
}
